<?php

/**
 * @author edson
 * @copyright 2011
 *  clase que maneja el logeo y todo lo relacionado a "ADMINISTRACION DE VENTANAS PARA USUARIOS" 
 * 
 */

 //establecer una variable conratafisica $_LOCALHOST
$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDOperator";
include_once("$ruta/star.php");
//include_once("$rut/conf/CConfig.php");

if (!isset($_POST['NamOpe'])) {$_POST['NamOpe'] = "NULL"; }
if (!isset($_POST['DirOpe'])) {$_POST['DirOpe'] = "NULL"; }
if (!isset($_POST['CodPosOpe'])) {$_POST['CodPosOpe'] = "NULL"; }
if (!isset($_POST['WebSitOpe'])) {$_POST['WebSitOpe'] = "NULL"; }
if (!isset($_POST['FirstConOpe'])) {$_POST['FirstConOpe'] = "NULL"; }
if (!isset($_POST['LastConOpe'])) {$_POST['LastConOpe'] = "NULL"; }
if (!isset($_POST['DirOpe'])) {$_POST['DirOpe'] = "NULL"; }
if (!isset($_POST['PhoOpe'])) {$_POST['PhoOpe'] = "NULL"; }
if (!isset($_POST['MailOpe'])) {$_POST['MailOpe'] = "NULL"; }
if (!isset($_POST['CommOpe'])) {$_POST['CommOpe'] = "NULL"; }
if (!isset($_POST['ClasOpe'])) {$_POST['ClasOpe'] = "NULL"; }
if (!isset($_POST['idCit'])) {$_POST['idCit'] = "NULL"; }



$NamOpe=$_POST['NamOpe'];
$DirOpe=$_POST['DirOpe'];
$CodPosOpe=$_POST['CodPosOpe'];
$WebSitOpe=$_POST['WebSitOpe'];
$FirstConOpe=$_POST['FirstConOpe'];
$LastConOpe=$_POST['LastConOpe'];
$DirOpe=$_POST['DirOpe'];
$PhoOpe=$_POST['PhoOpe'];
$MailOpe=$_POST['MailOpe'];
$CommOpe=$_POST['CommOpe'];
$ClasOpe=$_POST['ClasOpe'];
$idCit=$_POST['idCit'];



//-------------------------------------------------
//validacion de usuarios 

$cadena="insert into operador (IdOpe, NamOpe, CITY_idCit,  CodPosOpe, FirstConOpe, LastConOpe, WebSitOp, DirOpe, PhoOpe, MailOpe, CommOpe, ClasOpe)
         values ('NULL','$NamOpe',$idCit,'$CodPosOpe','$FirstConOpe','$LastConOpe','$WebSitOpe','$DirOpe','$PhoOpe', '$MailOpe', '$CommOpe', '$ClasOpe')";


// $cadena="insert into operador ('IdOpe', 'NamOpe', 'DirOpe',)
 // values ('NULL','$NamOpe','$DirOpe','$CodPosOpe','$FirstConOpe','$LastConOpe','$WebSitOpe','$DirOpe','$PhoOpe')";
    $table=CModelo::getInstance()->insertData($cadena);
    
  


//include_once("$rut/elements/head.tpl");
include_once("$rut/elements/foot.tpl");








?>


